package com.wyq.jpa.service;

import com.itiancai.thirdpart.zbank.tsp.ZbankClient;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;

import java.util.Properties;

/**
 * Created by langzi.me on 2017/11/8
 *
 * @author langzi.me
 */
@Service
public class ExtModules {

    @Bean(initMethod = "init")
    public ZbankClient zbankClient() {
        Properties properties = new Properties();
        properties.put("isProduct", false);
        properties.put("merId", "T000341");
        properties.put("secret", "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAIzmSZwqdiTnnzsSytIc+cQrUUuZ" +
                "FLNB68Nhcj/GfsyXMYwFVkeEHbbIeCQzPC0bEpy0b+ncQkTM1x+xwj2sE2fdC8ssQ040p68tj8rp" +
                "DH5prnv3BHzg4STyqi4WoTrCG2S+Y6l6u2AayTQcMLe6J9W5Hhox5Gwac6TXZ8c31M3bAgMBAAEC" +
                "gYBUFEfwzNXbh+xZEAnAAFJ7YW4NsrfLkJbj7I6EyCp6Y+7JI5Ys7wXcQRyQXZKXSAR/Rp1R7IIP" +
                "FD17SFQlAT5CZbJrq3MgGpcUhk41duLdU4ZE8StsrzDQqXdlaeNkRy7RG2xgJuXXM/pq8aSFhaXk" +
                "SXLn5jO/NNRI64vjYTehIQJBAMTEY432eGA+H4Za2CQiAtKIhPokfw4J9OT57+AEtuzrAtnTooOm" +
                "b5bE4v8Ml4z9VtqIwYtnwzMuvQu6G8W1AE0CQQC3UIiz23zzSdu1VAe1izlvKwqaa80oI04mZ9oT" +
                "4uIT9S2++p/o+1gWWRt9IoH8O2yE1IufhjveryX1EeHtYNrHAkEAvMZZaMpspJEVN5YSRWAn6wo0" +
                "4bN//d0JiWBMhVSglt3FJ2xGPx2/cxtDWEQhZY9r808+uFr9SC5wCj8sA9rqBQJAQ6o/e5xWJ/uo" +
                "VOt6mQGWJrnNhSirptg5XaXR8qs55kIHK8qZQkecwUsNAYi+UFui9/j4vN6wtMcUDL0YFyY8OwJA" +
                "IA2CIOk5NYnNFuFBw7zcLjZE+vc5lId0j2YaAiyZjcyEXPL5MbLk7ZJHe8/Q+q7jUV3qBlolA5Ao" +
                "0NuLq6Ilcg==");
        properties.put("zbankSecret", "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCQL2YLFwwIe4lyrmU/RBp/KKE/Ei8hFee" +
                "S5qdU88iw7UNFSZ1GsSj6iuPiQDRoF2KEweAQ4ECwbRioQPHRNksJ+QZ1CFGfHSnVRG65PWio6PT" +
                "CZ2wLfhlMgqm6Pu+8jLAc9DruSe2NAR+1H6M8BhSzxKG70sr6Gb3f+7QNeLcqPwIDAQAB");
        return new ZbankClient(properties);
    }
}
